package com.roc.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

@Entity
@Table(name = "t_announcements")
public class Announcement extends BaseBean implements Serializable{
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="announcements_seq")
	@SequenceGenerator(name="announcements_seq",sequenceName="announcements_seq")
	private long id;
	
	private String title;
	 
	private String content;
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Lob
	@Type(type="org.springframework.orm.hibernate3.support.ClobStringType")
	@Column(length=10000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	

	
}
